/*
 * Function can return pointer like othe values
 * We called a function fun() that returns an integer pointer
 * but as we can see address of i would die after exectuion of function fun()
 * so logically its an invalid code
 */

#include <stdio.h>

int main()
{
	int *p;
	int *fun();

	p = fun();

	printf("%u\n", p);
	printf("%d\n", *p);

	return 0;
}

int *
fun()
{
	int i = 20;
	return &i;
}
